﻿@model DTcms.Model.siteconfig
@{
    ViewBag.Title = "首页中心部分";
}
<div class="pageheader">
    <div class="page-bar">
        <ul class="page-breadcrumb">
            <li><a href="javascript:;"><i class="iconfont icon-home1"></i> 首页</a> </li>
            <li><a href="javascript:;">管理中心</a> </li>
        </ul>
    </div>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">本次登录IP</div>
                <div class="layui-card-body">
                    <p class="lay-big-font">@ViewBag.litIP</p>
                </div>
            </div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">上次登录IP</div>
                <div class="layui-card-body">
                    <p class="lay-big-font">@ViewBag.litBackIP</p>
                </div>
            </div>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">上次登录时间</div>
                <div class="layui-card-body">
                    <p class="lay-big-font">@ViewBag.litBackTime</p>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md4 layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-header"><i class="iconfont icon-setting"></i> 统计1</div>
                <div class="layui-card-body">
                    <div data-bind='component:{name: "echart",params: { ajaxUrl: "/echarts/bar1" ,theme:"macarons"}}' style="height: 373px;"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-md4 layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-header"><i class="iconfont icon-setting"></i> 统计2</div>
                <div class="layui-card-body">
                    <div data-bind='component:{name: "echart",params: { ajaxUrl: "/echarts/demo2" ,theme:"macarons"}}' style="height: 373px;"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-md4 layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-header"><i class="iconfont icon-setting"></i> 统计3</div>
                <div class="layui-card-body">
                    <div data-bind='component:{name: "echart",params: { ajaxUrl: "/echarts/demo3" ,theme:"macarons"}}' style="height: 373px;"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row layui-col-space15">
        <div class="layui-col-lg12 layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header"><i class="iconfont icon-setting"></i> 站点信息</div>
                <div class="layui-card-body">
                    <table class="layui-table">
                        <tbody>
                            <tr>
                                <td>站点名称</td>
                                <td>@Model.webname</td>
                                <td>公司名称</td>
                                <td>@Model.webcompany</td>
                                <td>网站域名</td>
                                <td>@Model.weburl</td>
                            </tr>
                            <tr>
                                <td>安装目录</td>
                                <td>@Model.webpath</td>
                                <td>网站管理目录</td>
                                <td>@Model.webmanagepath</td>
                                <td>附件上传目录</td>
                                <td>@Model.filepath</td>
                            </tr>
                            <tr>
                                <td>服务器名称</td>
                                <td>@Server.MachineName</td>
                                <td>服务器IP</td>
                                <td>@Request.ServerVariables["LOCAL_ADDR"]</td>
                                <td>NET框架版本</td>
                                <td>@Environment.Version.ToString()</td>
                            </tr>
                            <tr>
                                <td>操作系统</td>
                                <td>@Environment.OSVersion.ToString()</td>
                                <td>IIS环境</td>
                                <td>@Request.ServerVariables["SERVER_SOFTWARE"]</td>
                                <td>服务器端口</td>
                                <td>@Request.ServerVariables["SERVER_PORT"]</td>
                            </tr>
                            <tr>
                                <td>目录物理路径</td>
                                <td>@Request.ServerVariables["APPL_PHYSICAL_PATH"]</td>
                                <td>系统版本</td>
                                <td>V @DTcms.Common.Utils.GetVersion()</td>
                                <td>升级通知</td>
                                <td>@Html.Raw(ViewBag.LitUpgrade)</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row layui-col-space15">
        <div class="layui-col-lg12 layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="nlist-3">
                        <ul>
                            <li><a ew-href="/admin/settings/sys_config" ew-title="系统设置" href="javascript:;"><i class="iconfont icon-setting"></i></a><span>系统设置</span></li>
                            <li><a ew-href="/admin/channel/site_list" ew-title="站点管理" href="javascript:;"><i class="iconfont icon-site"></i></a><span>站点管理</span></li>
                            <li><a ew-href="/admin/settings/templet_list" ew-title="模板管理" href="javascript:;"><i class="iconfont icon-templet"></i></a><span>模板管理</span></li>
                            <li><a ew-href="/admin/settings/builder_html" ew-title="生成静态" href="javascript:;"><i class="iconfont icon-build"></i></a><span>生成静态</span></li>
                            <li><a ew-href="/admin/settings/plugin_list" ew-title="插件配置" href="javascript:;"><i class="iconfont icon-app"></i></a><span>插件配置</span></li>
                            <li><a ew-href="/admin/users/user_list" ew-title="会员管理" href="javascript:;"><i class="iconfont icon-user"></i></a><span>会员管理</span></li>
                            <li><a ew-href="/admin/manager/manager_list" ew-title="管理员" href="javascript:;"><i class="iconfont icon-manager"></i></a><span>管理员</span></li>
                            <li><a ew-href="/admin/manager/manager_log" ew-title="系统日志" href="javascript:;"><i class="iconfont icon-log"></i></a><span>系统日志</span></li>
                        </ul>
                    </div>
                    <div class="nlist-4">
                        <h3><i class="iconfont icon-edit"></i>建站三步曲</h3>
                        <ul>
                            <li>1、进入后台管理中心，点击“系统设置”修改网站配置信息；</li>
                            <li>2、点击“站点管理”进行系统划分站点、建立频道、扩展字段等信息；</li>
                            <li>3、制作好网站模板，上传到站点templates目录下，点击“模板管理”生成模板；</li>
                        </ul>
                        <h3><i class="iconfont icon-message"></i>官方消息</h3>
                        <ul>
                            @Html.Raw(ViewBag.LitNotice)
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@section Scripts{
    <script type="text/javascript" src="/scripts/libs/echart/echarts.min.js"></script>
    <script type="text/javascript" src="/scripts/libs/echart/knockout-3.4.0.js"></script>
    <script type="text/javascript" src="/scripts/libs/echart/plugins/echart/theme/macarons.js"></script>
    <script type="text/javascript" src="/scripts/libs/echart/components/magicodes.echart.js"></script>
    <script type="text/javascript">
        layui.use(['layer'], function () {
            var $ = layui.jquery;
            ko.applyBindings({});
        });
    </script>
}